Thank you very much, this functions perfectly
I really appreciate the breakdown and tips, I will reference back to this post I'm sure. Also will have to change a few other threads and things in different maps lol.
But I do have 3 questions. I'm not sure if I even knew this back in the day but....
Code:
if (local.player.fireheld) {
I see you put the "{" on the same line as the "if" statement, is this personal preference or is there a benefit from this? I've always done it at the next line.
Code:
local.player light (randomfloat(1.0)) (randomfloat(1.0)) (randomfloat(1.0)) 750;
Can you explain the use of the ";" in this line? I'm not sure if I've ever used it before, but it almost seems familiar.
Code:
if (!local.player.hidden && level.time >= local.player.hideTime) {
Also explain the use of the "!" in this line, as other lines just say "if (local..." without the "!." Curious as to it's use.
Sorry I'm so illiterate at this at the moment lol, it's been years since I've last done any scripting, and I've had plenty of parties in those years, so some things have been long forgotten lol.